<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/common.jsp"%>
<%@ taglib prefix="ex" uri="/WEB-INF/tld/frm/dictManage.tld"%>
<html lang="en">
<head>
<link href="${prcs}/css/def/ztree/metro.css" rel="stylesheet">
<link href="${prcs}/css/def/bootstrap/ace/ace-part2.min.css" rel="stylesheet">
<link href="${prcs}/css/def/bootstrap/ace/ace.css" rel="stylesheet">
<link href="${prcs}/css/def/bootstrap/ace/ace-ie.min.css" rel="stylesheet">
<link href="${prcs}/css/def/frm/common/common.css" rel="stylesheet">
<script type="text/javascript" src="${prcs}/js/jquery/plugin/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="${prcs}/js/jquery/plugin/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
	var zNodes = ${treeArray};
</script>
<style>
.ma_content {
	position: relative;
}

.ma_mark {
	position: absolute;
	top: 6px;
	right: 0;
	color: red;
	font-size: 20px;
}

.bottom .dataTables_info {
	float: left;
}

.bottom .dataTables_paginate {
	float: right;
}

table td {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	/* text-align: center; */
	font-size: 13px !important;
}

table th {
	text-align: center;
	font-size: 13px !important;
}
</style>
</head>
<body>
 <div class="head-title">
  <span>组织管理</span>
 </div>
 <div class="container-fluid" id="orgHeader">
  <div class="row-fluid">
   <!-- 机构树面板 -->
   <div class="row top-row">
    <div class="col-sm-4" id="daiban">
     <div class="menuTreeCan">
      <ul id="tree" class="ztree" style="overflow: none;"></ul>
     </div>
     <!-- List group -->
    </div>
    <div class="col-sm-1">
     <div style="width: 1px; border-left: 1px solid #ccc"></div>
    </div>
    <div class="col-sm-7">

     <!-- Default panel contents -->
     <div id="ctrlDom">
      <button class="btn btn-info" id="addDom" onclick="showAdd();">
       <span class="glyphicon glyphicon-plus"></span>
       插入节点
      </button>
      <button class="btn btn-danger" onclick="delOrgConfirm();">
       <span class="glyphicon glyphicon-minus"></span>
       删除节点
      </button>
      <button class="btn btn-info" onclick="showUpdate();">
       <span class="glyphicon glyphicon-pencil"></span>
       修改节点
      </button>
      <button type="button" class="btn btn-info" onclick="showStaff();">
       <span class="glyphicon glyphicon-user"></span>
       查看人员
      </button>
      <!-- <button class="btn btn-warning btn-block"><span class="glyphicon glyphicon-arrow-up"></span> 向上移动</button>
                            <button class="btn btn-warning btn-block"><span class="glyphicon glyphicon-arrow-down"></span> 向下移动</button>
                            <button class="btn btn-danger btn-block"><span class="glyphicon glyphicon-export"></span> 提高层级</button>
                            <button class="btn btn-danger btn-block"><span class="glyphicon glyphicon-import"></span> 降低层级</button> -->
     </div>
     <!-- List group -->
     <div>
      <div>
       <!-- end of upfpanel-header -->
       <div style="height: 320px;">
        <div id="orgShow" name="orgShow">
         <form class="form-horizontal">
          <div class="input-group" style="margin: 15px 20px 10px 0px;">
           <span class="input-group-addon" for="orgCode1" basic-addon1"="">组织编码</span>
           <div class="form-control">
            <span id="orgCode1">${sysOrg.orgCode}</span>
           </div>
          </div>

          <div class="input-group" style="margin: 15px 20px 10px 0px;">
           <label for="orgName1" class="input-group-addon">组织名称</label>
           <div class="form-control" id="orgName1">${sysOrg.orgName}</div>
          </div>
          <div class="input-group" style="margin: 15px 20px 10px 0px;">
           <label for="orgKind1" class="input-group-addon">组织类别</label>
           <div class="form-control" id="orgKind1">${sysOrg.orgKind}</div>
          </div>
          <div class="input-group" style="margin: 15px 20px 10px 0px;">
           <label for="orgType1" class="input-group-addon">组织类型</label>
           <div class="form-control" id="orgType1">${sysOrg.orgType}</div>
           <input id="parentOrgType" type="hidden" value="${sysOrg.orgType}" />
          </div>
          <div class="input-group" style="margin: 15px 20px 10px 0px;">
           <label for="orgStatus1" class="input-group-addon">组织状态</label>
           <div class="form-control" id="orgStatus1">${sysOrg.orgStatus}</div>
          </div>
          <div class="input-group" style="margin: 15px 20px 10px 0px;">
           <label for="disName" class="input-group-addon">所属省市</label>
           <span class="form-control" style="width:50%;<c:if test="${null==sysOrg.pdisName}"> display:none;</c:if>" id="pdisName1"> ${sysOrg.pdisName}</span>
           <span class="form-control" style="width:50%;<c:if test="${null==sysOrg.disName}"> display:none;</c:if>" id="disName1"> ${sysOrg.disName}</span>
          </div>
          <input type="hidden" id="firstNode" name="firstNode" value="${sysOrg.orgId}">
         </form>
        </div>
        <div id="menuInfoWell" class="content" style="display: none">
         <form class="form-horizontal" id="orgObj">
          <input type="hidden" name="orgId">
          <input type="hidden" id="parentId" name="parentId">
          <div class="form-group" style="margin: 0px">
           <div class="input-group" style="margin: 10px 0px 10px 0px;">
            <label class="input-group-addon">父组织名称</label>
            <span class="form-control" id="parentName"></span>
           </div>
          </div>
          <div class="form-group" style="margin: 0px">
           <div class="input-group" style="margin: 10px 0px 10px 0px;">
            <label class="input-group-addon">组织编码&nbsp;&nbsp;</label>
            <input type="text" class="form-control" name="orgCode" maxlength="20" ; placeholder="组织编码">
           </div>
          </div>
          <div class="form-group" style="margin: 0px">
           <div class="input-group" style="margin: 10px 0px 10px 0px;">
            <label class="input-group-addon">
             组织名称
             <span class="notNull">*</span>
            </label>
            <input type="text" class="form-control" name="orgName" maxlength="20" ; placeholder="组织名称">

           </div>
          </div>
          <div class="form-group" style="margin: 0px">
           <div class="input-group" style="margin: 10px 0px 10px 0px;">
            <label class="input-group-addon">
             组织类别
             <span class="notNull">*</span>
            </label>
            <span class="form-control" id="orgKindShow"></span>
            <input class="form-control" type="hidden" id="orgKind" name="orgKind" readonly>
            <%-- <ex:dictManage dictId="90238" id="orgKind" name="orgKind"
													style="form-control" placeholder="组织类别" /> --%>
           </div>
          </div>
          <div class="form-group" style="margin: 0px">
           <div class="input-group" style="margin: 10px 0px 10px 0px;">
            <label class="input-group-addon">
             组织类型
             <span class="notNull">*</span>
            </label>
            <ex:dictManage dictId="90242" id="orgType" name="orgType" style="form-control" placeholder="组织类型" />
           </div>
          </div>
          <div class="form-group" style="margin: 0px">
           <div class="input-group" style="width: 49%; margin: 10px 3px 10px 0px; float: left;">
            <label class="input-group-addon">
             所属省市
             <span class="notNull">*</span>
            </label>
            <input type="hidden" id="provId" name="provId" value="" />
            <select class="form-control" name="parentDisId" id="parentDisId">
            </select>
           </div>
           <div class="input-group" style="width: 49%; margin: 10px 0px 10px 3px; float: left;">
            <select class="form-control" name="disId" id="disId">
            </select>
           </div>
          </div>
          <div class="form-group">
           <center>
            <!--   <a type="button" class="btn btn-default" id="addOrg">保存</a> -->
            <div class="col-md-5 col-md-offset-3">
             <button type="submit" class="btn btn-primary" name="savebutton" id="addOrg">保&nbsp&nbsp存</button>
            </div>
           </center>
           <div class="form-group">
            <center>
             <div class="col-md-5 col-md-offset-3">
              <button type="submit" class="btn btn-primary" name="updatebutton" id="updateOrg">修&nbsp&nbsp改</button>
             </div>
            </center>
           </div>
          </div>
         </form>
        </div>
       </div>
      </div>
     </div>
    </div>
   </div>
  </div>
 </div>
 <!--岗位人员查看 -->
 <div class="container-fluid" id="orgStaffContainer" style="display: none;">
  <div class="ma_tip" style="margin: -10px 0 0px -15px; font-size: 16px; color: #ca5952;"></div>
  <div class="row">
   <div class="float-btn">
    <a type="button" class="btn btn-info" id="closeAddModal" onclick="backToMain();">返回</a>
   </div>
  </div>
  <hr>
  <div class="row">
   <!-- 列表 -->
   <table id="orgStaffTable" class="display table table-bordered" style="width: 100%">
    <thead>
     <tr>
      <th></th>
      <th>人员姓名</th>
      <th>账号</th>
      <th>岗位</th>
      <th>性别</th>
      <th>电话号码</th>
      <th>邮箱账号</th>
      <th>手机号码</th>
      <th>岗位状态</th>
     </tr>
    </thead>
   </table>
  </div>
 </div>
</body>
<script src="${prcs}/js/frm/sys/gacxSysOrgMain.js"></script>
</html>

